package com.ruge.user.dao;

import com.ruge.core.domain.BaseRepository;
import com.ruge.core.enums.IntegralEnum;
import com.ruge.user.domain.model.IntegralRule;

import java.util.Optional;

/**
 * @author ruge.wu
 * @since 2022/2/11 10:52
 */
public interface IntegralRuleRepository extends BaseRepository<IntegralRule> {
    Optional<IntegralRule> findFirstByIntegralTypeAndIsValidTrue(IntegralEnum integralType);
}
